﻿@model VehicleManagement.Models.Apply

@{
    ViewBag.Title = "DeleteApply";
    Layout = "~/Views/Shared/_Layout.cshtml";
}

<script language="javascript">
    function DeleteApply(id) {
        if (confirm("你确认删除这条申请吗?")) {
            $.post("/Apply/DeleteApply", "id=" + id, function (ret) {
                if (ret.Result == "true") {
                    alert(ret.Message);
                    window.location.reload();
                }
                else {
                    alert(ret.Message);
                }
            }, "json");
        }
    }
</script>

@*<h2>DeleteApply</h2>*@
<div class="mas">
<div class="toptitle">
  申请人平台
</div>
@*<div class="car"></div>*@
@Html.Partial("_PartviewApply")
<div class="rightshow">
<h3>Are you sure you want to delete this?</h3>
<fieldset>
    <legend>Apply</legend>

    <div class="display-label">ApplicantID</div>
    <div class="display-field">
        @Html.DisplayFor(model => model.ApplicantID)
    </div>

    <div class="display-label">CarType</div>
    <div class="display-field">
        @Html.DisplayFor(model => model.CarType)
    </div>

    <div class="display-label">ApplyTime</div>
    <div class="display-field">
        @Html.DisplayFor(model => model.ApplyTime)
    </div>

    <div class="display-label">CarUse</div>
    <div class="display-field">
        @Html.DisplayFor(model => model.CarUse)
    </div>

    <div class="display-label">Remark</div>
    <div class="display-field">
        @Html.DisplayFor(model => model.Remark)
    </div>
</fieldset>
@using (Html.BeginForm()) {
    <p>
        <input type="button" value="删除" onclick="DeleteApply(@Model.ApplyID)" /> |
        @Html.ActionLink("返回", "Index")
    </p>
}


</div>

<div class="clear"></div>
	
</div>

